package org.mitoma.logger.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class UserInfoPanel extends Composite {

  private static UserInfoPanelUiBinder uiBinder = GWT
                                                    .create(UserInfoPanelUiBinder.class);

  interface UserInfoPanelUiBinder extends UiBinder<Widget, UserInfoPanel> {
  }

  @UiField
  Label email;

  public UserInfoPanel() {
    initWidget(uiBinder.createAndBindUi(this));
    email.setText(GlobalRepository.getUser().getEmail());
  }

}
